<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %> 
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>客户列表</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>

<script type="text/javascript">
	var prjId='${prjId}';
	var cstType='${cstType}';
	var cstId = '${cstId}';
	var cstRlCd ='${cstRlCd}';
	var guarGrid = null;
	var corpShrGrid = null;
	var cstCorpTeamGrid =null;
	var prjLinkManGrid = null;
	var prjPrdInfoGrid = null;
	var urgentPrjLinkManGrid=null;
	var npgrid = null;
	var lpgrid = null; 

	$(function () {
		$("#prj_cst_invest_rpt_form").ligerForm({
		    validate: true
		});
		initGuarGrid();//担保人
		initCorpShrGrid();	//法人股东信息表
		initCstCorpTeamGrid();//法人企业团队
		initPrjLinkManGrid();//  项目联系人
		initPrjPrdInfoGrid();//项目产品类型
		initUrgentPrjLinkManGrid();//紧急联系人
		initNpGrid();
		initLpGrid();
		if(cstType==ProjectConstant.CST_TYP_CD_LP){
			$("#lpDiv").show();
			$("#suggDiv").show();
		}
		if(cstType==ProjectConstant.CST_TYP_CD_NP){
			$("#npDiv").show();
		}
		setFormatDateValue();
	});
	
	//自然人
	function initNpGrid(){
		  var data={};
	        data.cstRlTyp = ProjectConstant.CST_RL_SPONSOR;
	        data.prjId=prjId;
	        data.cstTypCd=ProjectConstant.CST_TYP_CD_NP;
		$("#npligergrid").ligerGrid({
	    	url: '<%=path%>/project/prjcstbscInfo/guarInitList.do',
	    	method : 'get',
	    	parms:data,
	        columns: [
	            { display: '客户ID', name: 'cstId', width: 50,align:'left', hide:true},
	            { display: '担保人名称', name: 'cstNm', minWidth: 140 , 
	            	render: function (rowdata, rowindex, value, column) { 
	            		var h = '';
	            		    h='<a class="sq-button-hasicon" href="javascript:detailBtn(';
	                        h+="'"+rowdata.cstId+"',";
	                        h+="'"+rowdata.cstTypCd+"'";
	                        h+=')">'+value+'</a>'
	                        return h;
	            		},
	            	enabledSort:true},
	            { display: '联系电话', name: 'cstNpBscInfoVO.mp1', width: 100,align:'left' },
	            { display: '性别', name: 'cstNpBscInfoVO.genderCdNm', width: 100},
	            { display: '与承租人关系',
	            	name: 'rlCdNm', minWidth: 140},
	            { display: '身份证号码', name: 'certNo', minWidth: 140 },
				{ display: '担保属性', name: 'guaraTypCdNm', minWidth: 140 },
	            { display: '合同签署状态', name: 'conSignStsNm', minWidth: 140 },
				{ display: '签署方式', name: 'cntTypCdNm', minWidth: 140 },
	            /*{ display: '合同签署状态', name: 'conSignSts', minWidth: 140 },*/
	             { display: '访谈记录', name: 'visRec', minWidth: 500},
	             getNpOptColumn()
	        ],
            onBeforeSubmitEdit: function (e) {//重新赋值,要不然选中后离开会把key显示在前端
                if (e.selected && e.column.columnname == "rlCdNm") {
                    e.record.rlCdId = e.value;
                    e.value = e.selected[e.column.editor.textField];
                    e.record.rlCd = e.record.rlCdId;
                }
            },
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        enabledEdit: false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        enabledSort: false,
	        usePagerOnLessPagesize: false,
	    });
			    npgrid = liger.get("npligergrid");
			}
	//获取操作列
	function getNpOptColumn(){
		var column = {
                display: '操作',
                isSort: false,
                width: 100,
                align:'left',
                render: function (rowdata, rowindex, value){
                	 var h="";
                		if(rowdata.id){
                		 h+='<a class="sq-button-hasicon" href="javascript:detailNpGuarBtn(';
                         h+="'"+rowdata.id+"',";
                         h+="'"+rowdata.cstNpBscInfoVO.mp1+"',";
                         h+="'"+rowdata.cstNpBscInfoVO.genderCdNm+"'";
                         h+=')"><i class="sqBtnIco_2"></i>查看</a>'
                		
                		} 
                        	  return h;
                }
            }
		return column;
	}
	
	
	//法人
	function initLpGrid(){
		 var data={};
	        data.cstRlTyp = ProjectConstant.CST_RL_SPONSOR;
	        data.prjId=prjId;
	        data.cstTypCd=ProjectConstant.CST_TYP_CD_LP;
		$("#lpligergrid").ligerGrid({
	    	url: '<%=path%>/project/prjcstbscInfo/guarInitList.do',
	    	method : 'get',
	    	parms:data,
	        columns: [
	            { display: '客户ID', name: 'cstId', width: 50,align:'left', hide:true},
	            { display: '公司名称', name: 'cstNm', minWidth: 140 , 
	            	render: function (rowdata, rowindex, value, column) { 
	            		var h = '';
	            		    h='<a class="sq-button-hasicon" href="javascript:detailBtn(';
	                        h+="'"+rowdata.cstId+"',";
	                        h+="'"+rowdata.cstTypCd+"'";
	                        h+=')">'+value+'</a>'
	                        return h;
	            		},
	            	enabledSort:true},
	            { display: '法人姓名', name: 'cstCorpBscInfoVO.prjCstCorpTeamVO.mnm', width: 100},
	            { display: '联系电话', name: 'cstCorpBscInfoVO.prjCstCorpTeamVO.mp1', width: 100},
	            { display: '与承租人关系',
	            	name: 'rlCdNm', minWidth: 140},
	             { display: '访谈记录', name: 'visRec', minWidth: 500},
	             getCorpOptColumn()
	        ],
            onBeforeSubmitEdit: function (e) {//重新赋值,要不然选中后离开会把key显示在前端
                if (e.selected && e.column.columnname == "rlCdNm") {
                    e.record.rlCdId = e.value;
                    e.value = e.selected[e.column.editor.textField];
                    e.record.rlCd = e.record.rlCdId;
                }
            },
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        enabledEdit: false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        enabledSort: false,
	        usePagerOnLessPagesize: false,
	    });
			    lpgrid = liger.get("lpligergrid");
			}
	
	
	
	function getCorpOptColumn(){
		var column = {
                display: '操作',
                isSort: false,
                width: 100,
                align:'left',
                render: function (rowdata, rowindex, value){
                	 var h="";
                		if(rowdata.id){
                		  h+='<a class="sq-button-hasicon" href="javascript:detailCorpGuarBtn(';
                          h+="'"+rowdata.id+"',";
                          h+="'"+rowdata.cstCorpBscInfoVO.prjCstCorpTeamVO.mnm+"',";
                  		if(rowdata.cstCorpBscInfoVO.prjCstCorpTeamVO.mp1){
                            h+="'"+rowdata.cstCorpBscInfoVO.prjCstCorpTeamVO.mp1+"'";
                            }else{
                          	 h+="''";
                            }
                          h+=')"><i class="sqBtnIco_2"></i>查看</a>'
                		
                		} 
                        	  return h;
                }
            }
		return column;
	}
	
	// 项目联系人
	function initPrjLinkManGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#prjLinkManGrid").ligerGrid({
	    	url: '<%=path%>/project/prjbscinfo/initPrjLinkManList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '项目角色', name: 'lnkTypCdNm', minWidth: 150 ,enabledSort:true},
	            { display: '姓名', name: 'lnkNm', minWidth: 150, },
	            { display: '公司职务', name: 'post', minWidth: 100 ,enabledSort:true},
	            { display: '性别', name: 'genderCdNm', minWidth: 150, },
	            { display: '身份证号', name: 'certNo', minWidth: 100 ,enabledSort:true},
	            { display: '手机号', name: 'mp', minWidth: 150, },
	            { display: '常住地址', name: 'homeAddr', minWidth: 200 ,enabledSort:true},
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		prjLinkManGrid = liger.get("prjLinkManGrid");
	}
	//设置日期值
	function setFormatDateValue(){
		//var rptDt =$("#rptDt").val();
		var rptDt = '${prjCstInvestRpt.rptDt}';
		if(rptDt){
	    	var rptDate = DateUtils.formatDate(new Date(rptDt),DateUtils.YYYY_MM_DD);
	    	$("#rptDt").text(rptDate);//日期
	    	}
		
	}
	function initPrjPrdInfoGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#prjPrdInfoGrid").ligerGrid({
	    	url: '<%=path%>/project/prjprdbscinfo/prjPrdInitList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	                { display: '供应商名称', name: 'splNm', minWidth: 100 ,
	                    render: function (rowdata, rowindex, value){
	                    	  var h="";
	                    	if(value){
	                    		if(rowdata.splInfoVO&&rowdata.splInfoVO.audStsCd){
	      	            		  if(rowdata.splInfoVO.audStsCd==FlowConstant.FLOW_CHECK_STATE_NON||rowdata.splInfoVO.audStsCd==FlowConstant.FLOW_CHECK_STATE_IN){
	      		                    	h+='<i class="ico_flasher"></i>';
	      		                    }
	      	            		}
		                     	h+='<a href="javascript:splDetail(';
		                        h+="'"+rowdata.splId+"'";
		                        h+=')">'+value+'</a>';
	                    	}
		                    return h;
		                },
	                	enabledSort:true},
	                { display: '实际控制人', name: 'ctrNm', minWidth: 150 },
	                { display: '联系电话', name: 'ctrTel', minWidth: 150 },
					{ display: '推荐供应商名称', name: 'recommendSplNm', minWidth: 100 ,
						render: function (rowdata, rowindex, value){
							var h="";
							if(value){
								if(rowdata.splInfoVO&&rowdata.splInfoVO.audStsCd){
									if(rowdata.splInfoVO.audStsCd==FlowConstant.FLOW_CHECK_STATE_NON||rowdata.splInfoVO.audStsCd==FlowConstant.FLOW_CHECK_STATE_IN){
										h+='<i class="ico_flasher"></i>';
									}
								}
								h+='<a href="javascript:splDetail(';
								h+="'"+rowdata.recommendSplId+"'";
								h+=')">'+value+'</a>';
							}
							return h;
						},
						enabledSort:true},
					{ display: '实际控制人', name: 'recommendCtrNm', minWidth: 150 },
					{ display: '联系电话', name: 'recommendCtrTel', minWidth: 150 },
	  	            { display: '设备名称', name: 'prdNm',
	                    render: function (rowdata, rowindex, value){
		  	                var h = "";
		  	            	  if(value){
			                        h+='<a href="javascript:prdDetail(';
			                        h+="'"+rowdata.id+"',";
			                        h+="'"+rowdata.prjId+"'";
			                        h+=')">'+value+'</a>';
		  	            	  }
			                    return h;
			                },
	                	minWidth: 150 },
	  	            { display: '设备品牌', name: 'brCd', minWidth: 150 },
	  	            { display: '设备价格', name: 'guidePc', minWidth: 100 ,enabledSort:true},
	  	            { display: '设备数量', name: 'prdQty', minWidth: 150 },
	  	            { display: '融资期限', name: 'payPd', minWidth: 100 ,enabledSort:true},
	  	            { display: '挂靠公司名称', name: 'lnkCompNm', minWidth: 100 ,enabledSort:true}
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		prjPrdInfoGrid = liger.get("prjPrdInfoGrid");
	}
	function splDetail(splId){
		//供应商详细信息
		var url  ="<%=path%>/product/splInfo/toDetailPage.do?id="+splId;
		Add_navTab('tab_spl_detail'+splId,'供应商详细信息',url);
	}
	function prdDetail(id,prjId){
		//供应商详细信息
				var editFlag = true;
		Add_navTab('tab_prj_prd_info_detail'+id,'项目产品详细信息','<%=path%>/project/prjprdbscinfo/toModifyPage.do?id='+id+'&&prjId='+prjId+'&&detailFlag='+editFlag);
	}
	//法人企业团队
	function initCstCorpTeamGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#cstCorpTeamGrid").ligerGrid({
	    	url: '<%=path%>/project/prjbscinfo/initCstCorpTeamList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '职务', name: 'mTypCdNm', minWidth: 200 ,enabledSort:true},
	            { display: '姓名', name: 'mnm', minWidth: 150, },
	             { display: '性别', name: 'genderCdNm', minWidth: 100 , enabledSort:true},
	            { display: '年龄', name: 'age', minWidth: 100 ,enabledSort:true}, 
	            { display: '手机号', name: 'mp1', minWidth: 140}
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		cstCorpTeamGrid = liger.get("cstCorpTeamGrid");
	}
	//法人股东信息表
	function initCorpShrGrid(){
		var params = {};
		params.prjId = prjId;
		params.cstId = cstId;
		$("#corpShrGrid").ligerGrid({
	    	url: '<%=path%>/customer/cstcorpshr/initList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '股东名称', name: 'shrNm', minWidth: 150 ,enabledSort:true},
	            { display: '身份证号码或组织机构代码证号', name: 'certNo', minWidth: 350},
	            { display: '股权比例', name: 'equPropPct', minWidth: 100 , enabledSort:true},
	            { display: '出资额（万元）', name: 'cntrAmt', minWidth: 100 ,enabledSort:true},
	            { display: '出资形式', name: 'contrWay', minWidth: 150 },
	        ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		corpShrGrid = liger.get("corpShrGrid");
	}

	//紧急联系人初始化列表
	function initUrgentPrjLinkManGrid(){
		var params = {};
		params.prjId = prjId;
		$("#urgentPrjLinkManGrid").ligerGrid({
			url: '<%=path%>/project/prjlinkman/initList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	             { display: '联系人姓名', name: 'lnkNm', minWidth: 140,enabledSort:true},
	            { display: '联系电话', name: 'mp', minWidth: 100 ,enabledSort:true},
	            { display: '性别', name: 'genderCdNm', minWidth: 140 , enabledSort:true},
	            { display: '与承租人关系', name: 'rlCdNm', minWidth: 140 , enabledSort:true},
	            { display: '访谈记录', name: 'visRec', minWidth: 140 , enabledSort:true},
	            ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		urgentPrjLinkManGrid = liger.get("urgentPrjLinkManGrid");
	}
	
	
	//担保人
	function initGuarGrid(){
		var params = {};
		params.cstRlTyp = ProjectConstant.CST_RL_SPONSOR;
		params.prjId = prjId;
		$("#guarGrid").ligerGrid({
	    	 url: '<%=path%>/project/prjcstbscInfo/guarInitList.do',
	    	method : 'get',
	    	parms:params,
	        columns: [
	            { display: '担保人姓名', name: 'cstNm', minWidth: 140 },
	            { display: '联系电话', name: 'cstNpBscInfoVO.mp1', minWidth: 100,enabledSort:true},
	            { display: '性别', name: 'cstNpBscInfoVO.genderCdNm', minWidth: 140 , enabledSort:true},
	            { display: '与承租人关系', name: 'rlCdNm',minWidth: 140 , enabledSort:true},
	            { display: '访谈记录', name: 'visRec', minWidth: 140 , enabledSort:true}
	            ],
	        pageSize:100,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        heightDiff:-2,
	        checkbox:false,
	        allowUnSelectRow: true,
            alternatingRow: false,
	        rownumbers:true,
	        usePagerOnLessPagesize: false,
	    });
		guarGrid = liger.get("guarGrid");
	}
	
	//格式化时间
	function renderDate(rowdata, index, value){
		var dateStr = "";
		if(null != value&&value!=''){
			var date = new Date(value);
			dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		}
		return dateStr;
	}
	
	
	
	function detailBtn(id,cstTypCd){
		if(cstTypCd==CustomerConstant.CST_TYPE_NP_CD){
			Add_navTab('tab_cst_detail'+id,'担保人详情','<%=path%>/customer/external/toCstDetailForPrjGuarCreditPage.do?id='+id);
		}
		if(cstTypCd==CustomerConstant.CST_TYPE_CORP_CD){
			Add_navTab('tab_cst_detail'+id,'担保人详情','<%=path%>/customer/external/toCstDetailForPrjGuarCreditPage.do?id='+id);
		}
	}
<%-- 	function detailBtn(id){
        $.ligerDialog.open({ height: 500,width: 600, url: '<%=path%>/project/prjbscinfo/toPhotosDetailPage.do?id='+id, isResize: true});
	} --%>
	function urgentDetailBtn(id,cstTypCd){
		if(cstTypCd==CustomerConstant.CST_TYPE_NP_CD){
			Add_navTab('tab_cst_detail'+id,'客户详情','<%=path%>/customer/cstbscinfo/toCustCstBacInfoNpDetailPage.do?id='+id);
		}
		if(cstTypCd==CustomerConstant.CST_TYPE_CORP_CD){
			Add_navTab('tab_cst_detail'+id,'客户详情','<%=path%>/customer/cstbscinfo/toCustCstBacInfoCorpDetailPage.do?id='+id);
		}
	};
	
	function showImg(e){
		/* e.preventDefault();
        var href = $(e.target).attr('href');
       if(!href){
     	  return;
       }
       if(SQ.regs.img.test(href)){
           SQ.imgPreview(href);
       } */
		 e.preventDefault();
		   var href = $(e.target).attr('src');
		      if(!href){
		    	  return;
		      }
		      if(SQ.regs.img.test(href)){
       var imgSrc = $(e.target).attr('src'),
           imgTit = $(e.target).attr('title');
       window.__ImgSrc = imgSrc;
       window.__ImgTit = imgTit;
       window.open('<%=path%>/project/prjbscinfo/imgWinOpen.do', '', 'location=yes, width=800, height=600');
		      }
	}
	//格式化时间
	function renderDate(rowdata, index, value){
		var dateStr = "";
		if(null != value&&value!=''){
			var date = new Date(value);
			dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		}
		return dateStr;
	}
	
	function renderAmt(rowdata, index, value){
			if(typeof  value=='number'){
				 var num = new Number(value);
					var sAmt = parseFloat(value).toString();
					return sAmt; 
			}else{
				return " ";
			}
			}
	
	function checkImg(path){
		var flag = true;
	       reg = new RegExp('^.*\.(?:png|jpg|bmp|gif|jpeg)$');
	        if (!reg.test(path)) {
	        	flag = false;
	        };
	        return flag;
	}
	function iframeResize () {
	    if (parent.mainApp) {
	        parent.mainApp.parentTab.onResize();
	    };
	}
	
	function detailCorpGuarBtn(id,mnm,mp1){
		var  url = '<%=path%>/project/prjcstbscInfo/detailCorpGuarPage.do?id='+id+'&&mnm='+mnm+'&&mp1='+mp1;
		$.ligerDialog.open({
            height:300,
            width: 600,
            title : '查看担保人信息',
            url: url, 
            showMax: false,
            showToggle: true,
            showMin: false,
            isResize: true,
            slide: false,
        });
	}
	
	function detailNpGuarBtn(id,mp1,genderCdNm){
		var  url = '<%=path%>/project/prjcstbscInfo/detailNpGuarPage.do?id='+id+'&&mp1='+mp1+'&&genderCdNm='+genderCdNm;
		$.ligerDialog.open({
            height:300,
            width: 600,
            title : '查看担保人信息',
            url: url, 
            showMax: false,
            showToggle: true,
            showMin: false,
            isResize: true,
            slide: false,
        });
	}
</script>

<body class="iframeBody">
	<div class="Wrapper">
	   <div>
		 <div id="pageInTab" class="pageInTab">
		<%--  <div class="btnsBox">
               <a class="sq-button sq-button-round"  id="export"  href="<%=path%>/project/prjbscinfo/exportInvesstRpt.do?prjId=${prjId}&&cstId=${cstId}&&cstRlCd=${cstRlCd}">导出</a>
	      </div> --%>
	      <div id="lpDiv" style="display: none"><!-- 法人 -->
	           	                 <div class="fieldset1 tabel_col clearFix">
		 		<div class="caption">
	                           <span class="title">申请人信息</span>
	            </div>
                            <div class="fieldBox col_33">
                                <div class="label">企业名称</div>
                                <div class="field">
                                    <span id="shtNm" name="shtNm">${bscInfo.cstNm}</span>
                                </div>
                            </div>
                             <div class="fieldBox col_33">
                                <div class="label">注册资本金</div>
                                <div class="field" style="margin-right: 5px;">
                                    <span id="regCapAmt" name="regCapAmt">${corpInfo.regCapAmt }</span>
                                </div>
                            </div>
                                 <div class="fieldBox col_33">
                                <div class="label">企业性质</div>
                                <div class="field">
                                    <span id="corpTypCdNm" name="corpTypCdNm">${corpInfo.corpTypCdNm }</span>
                                </div>
                            </div>
                            
                               <div class="fieldBox col_33">
                                <div class="label">房产属性</div>
                                <div class="field">
                                 	<span id="prpAttr" name="prpAttr" ligerui="width: 110">${corpInfo.prpAttr }</span>
                                </div>
                            </div> 
                            <div class="fieldBox col_33">
                                <div class="label">办公地址</div>
                                <div class="field">
                                	<span id="officeAddr" name="officeAddr">${corpInfo.officeAddr }</span>
                                </div>
                            </div>
                             <div class="fieldBox col_33">
                                <div class="label">办公电话</div>
                                <div class="field">
                                	<span id="officeTel" name="officeTel">${corpInfo.officeTel }</span>
                                </div>
                            </div>
                            <div class="fieldBox col_33">
                                <div class="label">办公传真</div>
                                <div class="field">
                                	<span id="officeTel" name="officeTel">${corpInfo.corpTax }</span>
                                </div>
                            </div>
                            
                  
                  
       <div class="sqPanel">
            <div class="sqPanel_head inL">
                <span>股东及股权比例</span>
            </div>
            <div class="sqPanel_body">
                <div id="corpShrGrid" class="sq-grid"></div>
            </div>
   </div>    
   
          <div class="sqPanel">
            <div class="sqPanel_head inL">
                <span>主要管理人员基本信息</span>
            </div>
            <div class="sqPanel_body">
                <div id="cstCorpTeamGrid" class="sq-grid"></div>
            </div>
   </div> 
   
   
   
    <div class="sqPanel">
            <div class="sqPanel_head inL">
                <span>联络人信息</span>
            </div>
            <div class="sqPanel_body">
                <div id="prjLinkManGrid" class="sq-grid"></div>
            </div>
   </div> 
               </div>   
               </div>      
            <div id="npDiv"  style="display: none">
            	<div class="caption">
	                           <span class="title">申请人信息</span>
	            </div>
	               <div class="fieldset1 tabel_col clearFix">
	                 <div class="fieldBox col_33">
			                    <div class="label">姓名</div>
			                    <div class="field">
			                    	<label></label>
			                        <span id="cstNm" name="cstNm">${bscInfo.cstNm}</span>
			                    </div>
			                </div>
			                 <div class="fieldBox col_33">
			                    <div class="label">联系电话</div>
			                    <div class="field">
			                     	<span id="mp1" name="mp1">${npInfo.mp1}</span>
			                    </div>
			                </div> 
			                  <div class="fieldBox col_33">
			                    <div class="label">证件号</div>
			                    <div class="field">
			                        <span id="rl_certNo" name="rl_certNo">${bscInfo.certNo}</span>
			                    </div>
			                </div>
			            <div class="fieldBox col_33">
			                    <div class="label">性别</div>
			                    <div class="field">
			                     	<span id="genderCdNm" name="genderCdNm">${npInfo.genderCdNm}</span>
			                    </div>
			                </div>   
			                 <div class="fieldBox col_33">
			                    <div class="label">年龄</div>
			                    <div class="field">
			                    	<span id="age" name="age">${npInfo.age}</span>
			                    </div>
			                </div>  
			                <div class="fieldBox col_33">
			                    <div class="label">配偶姓名</div>
			                    <div class="field">
			                    	<label></label>
			                        <span id="cstNm" name="cstNm">${rlVo.rlNm}</span>
			                    </div>
			                </div>
			                 <div class="fieldBox col_33">
			                    <div class="label">联系电话</div>
			                    <div class="field">
			                     	<span id="mp1" name="mp1">${rlVo.mp}</span>
			                    </div>
			                </div> 
			                  <div class="fieldBox col_33">
			                    <div class="label">证件号</div>
			                    <div class="field">
			                        <span id="rl_certNo" name="rl_certNo">${rlVo.certNo}</span>
			                    </div>
			                </div>
			            <div class="fieldBox col_33">
			                    <div class="label">性别</div>
			                    <div class="field">
			                     	<span id="genderCdNm" name="genderCdNm">${rlVo.genderCdNm}</span>
			                    </div>
			                </div>   
			                 <div class="fieldBox col_33">
			                    <div class="label">年龄</div>
			                    <div class="field">
			                    	<span id="age" name="age">${age}</span>
			                    </div>
			                </div>  
			                   <%--  <div class="fieldBox col_33">
			                    <div class="label">工作单位</div>
			                    <div class="field">
			                    	<span id="rl_workPlc" name="rl_workPlc">${npInfo.workPlc}</span>
			                    </div>
			                </div> --%>
			                <%--   <div class="fieldBox col_33">
			                    <div class="label">职务</div>
			                    <div class="field">
			                    	<span id="posCdNm" name="posCdNm">${npInfo.posCdNm}</span>
			                    </div>
			                </div> --%>
			                  <div class="fieldBox col_100">
			                    <div class="label">单位地址</div>
			                    <div class="field">
			                    	<span id="rl_workAddr" name="rl_workAddr">${npInfo.workAddr}</span>
			                    </div>
			                </div>
			                  <div class="fieldBox col_100">
			                    <div class="label">通讯地址</div>
			                    <div class="field">
			                        <span id="postAddr" name="postAddr">${npInfo.postAddr}</span>
			                    </div>
			                </div>
			                <%--   <div class="fieldBox col_33">
			                    <div class="label">从业年限</div>
			                    <div class="field">
			                        <span id="workYrs" name="workYrs">${npInfo.workYrs}</span>
			                    </div>
			                </div> --%>
			                <div class="fieldBox col_33">
			                    <div class="label">婚姻状况</div>
			                    <div class="field">
			                        <span id="marStsCdNm" name="marStsCdNm">${npInfo.marStsCdNm}</span>
			                    </div>
			                </div>
	          	  </div>
	          	  
						
            </div> 
                 
            <div class="sqPanel">
            <div class="sqPanel_head inL">
                <span>融资信息</span>
            </div>
            <div class="sqPanel_body">
                <div id="prjPrdInfoGrid" class="sq-grid"></div>
            </div>
  			 </div> 
  			 
  		 <div class="sqCaption-normal">
	            <div class="tit">
	          担保人信息
	            </div>
     </div>
     <div class="sqPanel">
            <div class="sqPanel_head inL">
                <span>自然人</span>
            </div>
            <div class="sqPanel_body">
                <div id="npligergrid" class="sq-grid"></div>
            </div>
   </div>
   
   
     <div class="sqPanel">
            <div class="sqPanel_head inL">
                <span>法人</span>
            </div>
            <div class="sqPanel_body">
                <div id="lpligergrid" class="sq-grid"></div>
            </div>
   </div>
  
  			 
  			   <div class="sqPanel">
		            <div class="sqPanel_head inL">
		                <span>第三方联系人信息</span>
		            </div>
		            <div class="sqPanel_body">
		                <div id="urgentPrjLinkManGrid" class="sq-grid"></div>
		            </div>
  			 </div> 
  			 
	             <!-- -----------------------------------运营信息--------------------------------------------------------------------------------------- -->                          
	             <div class="fieldset1 tabel_col clearFix">
	             <div class="caption">
	                           <span class="title">运营信息</span>
	            </div>
		                      <div class="fieldBox col_33">
				                    <div class="label">自有车辆情况</div>
				                    <div class="field">
				                        <span>${tk.selfTkDesc}</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_33">
				                    <div class="label">收入方式</div>
				                    <div class="field">
				                     <span name="profitCd"  id="profitCd">${tk.profitCdNm}</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_33">
				                    <div class="label">运营年限</div>
				                    <div class="field">
				                    <span name="cstNum"  id="cstNum" >${tk.experience}</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_33">
				                    <div class="label">主运输货物</div>
				                    <div class="field">
				                    <span name="goods"  id="goods" >${tk.goods }</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_33">
				                    <div class="label">主货物大类</div>
				                    <div class="field">
				                    <span  name="mainGoodsCdNm"  id="mainGoodsCdNm">${tk.mainGoodsCdNm}</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_100">
				                    <div class="label">运营路线</div>
				                    <div class="field">
				                    <span name="route"  id="route">${tk.route }</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_33">
				                    <div class="label">货物来源</div>
				                    <div class="field">
				                      <span name="goodsResCd"  id="goodsResCd">${tk.goodsResCdNm}</span>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_33">
				                    <div class="label">第二还款来源</div>
				                    <div class="field">
				                    <span name="secondPayResCd"  id="secondPayResCd" >${tk.secondPayResCdNm}</span>
				                    </div>
		               		 </div>
		               		   <div class="fieldBox col_100">
				                    <div class="label">其他信息</div>
				                    <div class="field">
				                    <span name="otherInfo"  id="otherInfo" >${tk.otherInfo}</span>
				                    </div>
		               		 </div>
                            </div>
  <!-- -----------------------------------承租人考察（考察人员必须在照片中出现）--------------------------------------------------------------------------------------- -->                          
	 <div class="sqPanel">
		            <div class="sqPanel_head inL">
		                <span>承租人考察</span>
		            </div>
		            <table class="table_full tbl_1">
			            <tbody>
						   <tr>  
							    <c:forEach items="${dtlList}" var="cstFile" varStatus="status">  
							        <c:if test="${status.index%4==0}">  
							            </tr>  
							            <tr>  
							        </c:if>  
								 <td>
									  <h5>${cstFile.datNm}</h5>
									  <div class="imgBox">
									  <c:if test="${ empty cstFile.filePath}">
									  <img src="${defImg}"  role="winOpen" title=""  onclick="showImg(event);">
									  </c:if>
									<c:if test="${ not empty cstFile.filePath}">
									  <img id="imgPath"  role="winOpen" title="${cstFile.fileNm}" src="${cstFile.filePath}" onclick="showImg(event);" href="${cstFile.filePath}">
									</c:if>
									  <%-- <img src="${cstFile.fileRec.filePath}"> --%>
									  </div>
									    <div class="btns">
						                    <span class="sq-button sq-button-round co_normal"  <%-- onclick="downLoad('${cstFile.fileRec.id}');" --%>>
						                   <a   target="_blank"  href="<%=path%>/system/sysulfilesrec/downLoad.do?fileName=${cstFile.fileNm}&filePath=${cstFile.filePath}">下载</a>
<%-- 						                    <a  href="<%=path%>/project/prjbscinfo/downLoad.do?fileId=${cstFile.fileRec.id}">下载</a>
 --%>						                   </span>
						                  <%--   <span class="sq-button sq-button-round co_normal"  sysCd="${cstFile.sysCd}" orgCd="${cstFile.orgCd}" cfgCd="${cstFile.cfgCd}" cfgDtlCd="${cstFile.cfgDtlCd}" cfgDtId="${cstFile.cfgDtId}"  onclick="uploadFile(this,'${cstFile.sysCd}','${cstFile.orgCd}','${cstFile.cfgCd}','${cstFile.cfgDtlCd}')">上传</span>
						                    <span class="sq-button sq-button-round co_normal" onclick="removeFileRec(this,'${cstFile.fileRec.id}')">删除</span> --%>
                						</div>
							      </td>  
							    </c:forEach>  
							</tr> 
			            </tbody>
		            </table>
  			 </div>
   <div class="sqCaption-normal TC">
        <div class="tit">
            自然人担保人考察照片
        </div>
    </div>
  			  <c:forEach items="${npMap}"  var="np">
 			 <div class="sqPanel">
		            <div class="sqPanel_head inL">
		                <span>${np.key}考察照片</span>
		            </div>
		            <table class="table_full tbl_1">
			            <tbody>
						   <tr>  
							    <c:forEach items="${np.value}" var="cstFile" varStatus="status">  
							        <c:if test="${status.index%4==0}">  
							            </tr>  
							            <tr>  
							        </c:if>  
								 <td>
									  <h5>${cstFile.datNm}</h5>
									  <div class="imgBox">
									  <c:if test="${ empty cstFile.filePath}">
									  <img src="${defImg}"   role="winOpen" title=""  onclick="showImg(event);">
									  </c:if>
									<c:if test="${ not empty cstFile.filePath}">
									  <img id="imgPath"   role="winOpen" title="${cstFile.fileNm}"  src="${cstFile.filePath}" onclick="showImg(event);" href="${cstFile.filePath}">
									</c:if>
									  </div>
									    <div class="btns">
						                    <span class="sq-button sq-button-round co_normal"  <%-- onclick="downLoad('${cstFile.fileRec.id}');" --%>>
<%-- 						                    <a  href="<%=path%>/project/prjbscinfo/downLoad.do?fileId=${cstFile.fileRec.id}">下载</a>
 --%>						                   
 										 <a   target="_blank"  href="<%=path%>/system/sysulfilesrec/downLoad.do?fileName=${cstFile.fileNm}&filePath=${cstFile.filePath}">下载</a>
 												
 											</span>
                						</div>
							      </td>
							      </c:forEach>    
							</tr> 
			            </tbody>
		            </table>
  			 </div>
		  </c:forEach> 
  			 	   
  	  <div class="sqCaption-normal TC">
        <div class="tit">
            法人担保人考察照片
        </div>
    </div>		 	   
  			 	   
  			   <c:forEach items="${lpMap}"  var="lp">
 			 <div class="sqPanel">
		            <div class="sqPanel_head inL">
		                <span>${lp.key}考察照片</span>
		            </div>
		            <table class="table_full tbl_1">
			            <tbody>
						   <tr>  
							    <c:forEach items="${lp.value}" var="cstFile" varStatus="status">  
							        <c:if test="${status.index%4==0}">  
							            </tr>  
							            <tr>  
							        </c:if>  
								 <td>
									  <h5>${cstFile.datNm}</h5>
									  <div class="imgBox">
									  <c:if test="${ empty cstFile.filePath}">
									  <img src="${defImg}"  role="winOpen" title=""  onclick="showImg(event);">
									  </c:if>
									<c:if test="${ not empty cstFile.filePath}">
									  <img id="imgPath"   role="winOpen" title="${cstFile.fileNm}"  src="${cstFile.filePath}" onclick="showImg(event);" href="${cstFile.filePath}">
									</c:if>
									  </div>
									    <div class="btns">
						                    <span class="sq-button sq-button-round co_normal"  <%-- onclick="downLoad('${cstFile.fileRec.id}');" --%>>
<%-- 						                  <a   href="<%=path%>/project/prjbscinfo/downLoad.do?fileId=${cstFile.fileRec.id}">下载</a>
 --%>						                      <a   target="_blank"  href="<%=path%>/system/sysulfilesrec/downLoad.do?fileName=${cstFile.fileNm}&filePath=${cstFile.filePath}">下载</a>
						                    
						                    </span>
                						</div>
							      </td>
							      </c:forEach>    
							</tr> 
			            </tbody>
		            </table>
  			 </div>
		  </c:forEach> 	   
  			 
  			  
  			 <div class="sqPanel">
  			   <form id="prj_cst_invest_rpt_form">
                        <div class="fieldset1 tabel_col clearFix">
		                      <div class="fieldBox col_100">
				                    <div class="label">意见：</div>
				                    <div class="field">
				                       <span name="sugg" id="sugg"  >${prjCstInvestRpt.sugg }</span>
				                    </div>
		               		 </div>
                                 <div class="fieldBox col_100">
                                <div class="label">承诺：</div>
                                <div class="field">
  									 <span>承诺：本人承诺承租人信息已现场核实，并对承租人做了尽职调查。<br/>并现场监督了客户在租赁合同及相关法律文件上的签字用印，对其真实性进行了核实。<br/>向公司提供的承租人相关权证资料包括但不限于车辆销售发票、车辆保单、车辆登记证书、车辆钥匙及法律文件等资料和手续真实有效。<br/>若由于上述法律文件及资料真实性原因导致公司权益受到侵害，我个人愿意承担一切责任。</span>
                                   </div>
                            </div>
                            <%--     <div class="fieldBox col_50">
                                <div class="label">报告类型：</div>
                                <div class="field">
                                 <select name="cstRptTypCd"  id="cstRptTypCd"   >
	                                <c:forEach items="${keyList}" var="opt">
	                                 <option value="${opt.key}"
	                                 <c:if test="${opt.key==prjCstInvestRpt.cstRptTypCd }">selected="selected"</c:if>
	                                 >${opt.value}</option>
	                                </c:forEach>
	                                </select>
                                </div>
                            </div> --%>
                              <div class="fieldBox col_50">
                                <div class="label">调查人员签字：</div>
                                <div class="field">
                                      <span name="investor" id="investor"  >${prjCstInvestRpt.investor }</span>
                                </div>
                            </div>
                            <div class="fieldBox col_50">
                                <div class="label">日期</div>
                                <div class="field"> 
                                <span name="rptDt" id="rptDt"  >${prjCstInvestRpt.rptDt }</span>
                                </div>
                            </div>
                              <div class="fieldBox col_50"  style="display: none">
                                <div class="field"> 
                                <span>${prjCstInvestRpt.id }</span>
                                </div>
                            </div>
                            </div>
                    </form>
           				 </div>
                         <div>
                         <span>无论是否批准融资，狮桥融资租赁（中国）有限公司都将保留此客户申请及调查报告。</span>
                         </div>     
		</div>
</div>






</body>
</html>